package com.example.jump;
import android.content.Intent;
import android.os.Handler;
import android.os.Bundle;

import java.util.Timer;
import java.util.TimerTask;

import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

    public class WelcomeActivity extends AppCompatActivity {

            @Override
            protected void onCreate(@Nullable Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_welcome);  //快捷键alt+enter

                //延时操作
                Timer timer = new Timer();
                timer.schedule(timetast, 5000);
            }
            TimerTask timetast = new TimerTask() {
                @Override
                public void run() {

                    startActivity(new Intent(WelcomeActivity.this,MainActivity.class));//跳转登录界面
                }
            };



        }



